using UnityEngine;
using UnityEngine.UI;

public class Button_Confirm : StartGameButton
{
    [SerializeField]
    private Slider slider;
    [SerializeField]
    private Toggle toggle;

    protected override void OnClick()
    {
        gameManager.decisionTime = Mathf.RoundToInt(slider.value);
        gameManager.computerFirst = toggle.isOn;
        base.OnClick();
    }
}
